#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)

#include"Stack.h"
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>

int main() {

	Stack* s = stack_creat();

	stack_push(s, 1);
	stack_push(s, 2);
	stack_push(s, 3);
	stack_push(s, 4);//4-->3-->2-->1

	int top = stack_peek(s);

	int a = stack_pop(s);
	int b = stack_pop(s);
	int c = stack_pop(s);
	int d = stack_pop(s);
	int e = stack_pop(s);


	bool stack_empty(s);
	

	stack_destroy(s);

	return 0;
}